package dao

import (
	"srv-server/basic/global"
	"srv-server/handler/model"
)

func GetListTick(ticket_type int, ticks model.Ticket) (tick []*model.Ticket, err error) {

	if err = global.DB.Where("ticket_type = ?", ticket_type).Find(&tick).Error; err != nil {
		return nil, err
	}
	return

}
